setFraction

open fun setFraction(@FloatRange(from = 0.0, to = 1.0) fraction: Float)(source)

Set fraction of the progress if Type animation is controlled by the app.

Note: This should only be used for testing, as the system fills in the fraction for the application or the fraction that was passed into setInsetsAndAlpha is being used.

Parameters

fraction

fractional progress between 0 and 1 where 0 represents hidden and zero progress and 1 represent fully shown final state.

See also